package tool;

public class KeyboardUtils {

	public static char getNextLetter(char letter) {

		char result = letter;

		switch (letter) {
		case ' ':
			result = '0';
			break;
		case 'a':
			result = 'b';
			break;
		case 'b':
			result = 'c';
			break;
		case 'c':
			result = '2';
			break;
		case 'd':
			result = 'e';
			break;
		case 'e':
			result = 'f';
			break;
		case 'f':
			result = '3';
			break;
		case 'g':
			result = 'h';
			break;
		case 'h':
			result = 'i';
			break;
		case 'i':
			result = '4';
			break;
		case 'j':
			result = 'k';
			break;
		case 'k':
			result = 'l';
			break;
		case 'l':
			result = '5';
			break;
		case 'm':
			result = 'n';
			break;
		case 'n':
			result = 'o';
			break;
		case 'o':
			result = '6';
			break;
		case 'p':
			result = 'q';
			break;
		case 'q':
			result = 'r';
			break;
		case 'r':
			result = 's';
			break;
		case 's':
			result = '7';
			break;
		case 't':
			result = 'u';
			break;
		case 'u':
			result = 'v';
			break;
		case 'v':
			result = '8';
			break;
		case 'w':
			result = 'x';
			break;
		case 'x':
			result = 'y';
			break;
		case 'y':
			result = 'z';
			break;
		case 'z':
			result = '9';
			break;

		default:
			break;
		}
		return result;
	}

	public static char getNextLetterNoNum(char letter) {

		char result = letter;

		switch (letter) {

		case 'a':
			result = 'b';
			break;
		case 'b':
			result = 'c';
			break;
		case 'd':
			result = 'e';
			break;
		case 'e':
			result = 'f';
			break;
		case 'g':
			result = 'h';
			break;
		case 'h':
			result = 'i';
			break;
		case 'j':
			result = 'k';
			break;
		case 'k':
			result = 'l';
			break;
		case 'm':
			result = 'n';
			break;
		case 'n':
			result = 'o';
			break;
		case 'p':
			result = 'q';
			break;
		case 'q':
			result = 'r';
			break;
		case 'r':
			result = 's';
			break;
		case 't':
			result = 'u';
			break;
		case 'u':
			result = 'v';
			break;
		case 'w':
			result = 'x';
			break;
		case 'x':
			result = 'y';
			break;
		case 'y':
			result = 'z';
			break;

		default:
			break;
		}
		return result;
	}

}
